#ifndef AST_STATEMENT_EXPRESSION_STMT_H
#define AST_STATEMENT_EXPRESSION_STMT_H

#include "../ASTNode.h"
class Expression;

/*
C99   6.8.3
expression-statement:
		expression(opt)   ;
*/
class ExpressionStmt : public ASTNode
{
public:
	ExpressionStmt(Expression * pExpr = NULL)
		: ASTNode(ASTNode::expression_statement)
		, m_pExpr(pExpr){};


	virtual ~ExpressionStmt(void);

	virtual void				codeGen();

protected:
	Expression *					m_pExpr;//may be NULL
};


#endif

